<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath(); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=cp%>/data/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	function reserOk(reserNo){
		location.href = "<%=cp%>/reservation/reserSTup.action?reserNo="+reserNo+"&status=2";
	}
</script>
</head>
<body>
<div id="container">
<hr/>투어 예매확인
<table border="1" width="80%">
<thead>
<tr>
	<th>예매번호</th>
	<th>상품유형</th>
	<th>상품명</th>
	<th>고객명</th>
	<th>금액</th>
	<th>인원수</th>
	<th>확인</th>
</tr>
</thead>
<tbody>
<c:if test="${!empty tourlists}">
<c:forEach var="dto" items="${tourlists}">
<tr>
	<td>${dto.reserNo}</td>
	<td>${dto.gubun}</td>
	<td>${dto.subject}</td>
	<td>${dto.userId}</td>
	<td>${dto.price}</td>
	<td>${dto.inwon}</td>
	<td><input type="button" value="확인" onclick="reserOk('${dto.reserNo}');"/></td>
</tr>
</c:forEach>
</c:if>
<c:if test="${empty tourlists}">
	예매된 내역이 없습니다.
</c:if>
</tbody>
</table>
<hr/>
<br/>
<hr>항공 예매 확인
<table border="1" width="80%">
<thead>
<tr>
	<th>예매번호</th>
	<th>상품유형</th>
	<th>목적지</th>
	<th>고객명</th>
	<th>금액</th>
	<th>인원수</th>
	<th>확인</th>
</tr>
</thead>
<tbody>
<c:if test="${!empty fligthlist}">
<c:forEach var="dto" items="${fligthlist}">
<tr>
	<td>${dto.reserNo}</td>
	<td>${dto.gubun}</td>
	<td>${dto.endPlace}</td>
	<td>${dto.userId}</td>
	<td>${dto.price}</td>
	<td>${dto.inwon}</td>
	<td><input type="button" value="확인" onclick="reserOk('${dto.reserNo}');"/></td>
</tr>
</c:forEach>
</c:if>
<c:if test="${empty fligthlist}">
	예매된 내역이 없습니다.
</c:if>
</tbody>
</table>
<hr/>

</div>
</body>
</html>